#include "ArgNode.h"

using namespace std;

ArgNode::~ArgNode()
{
	for(list<Node*>::iterator it = arguments.begin(); it != arguments.end(); it++ )
		delete(*it);
}

void ArgNode::addArg(Node * Argument)
{ arguments.push_back(Argument); }

const std::list<Node*> & ArgNode::getArgList() const
{ return arguments; }

void ArgNode::accept(Visitor & v)
{ v.visitArgNode(this); }

void ArgNode::setFunc(int Id)
{ id = Id; }

int ArgNode::getFunc()
{ return id; }


